package com.wkbb.common.dto.door;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author yangdaofang
 * 创建时间：2019-09-23 14:06
 */
@Data
public class DoorPassBaseRecordDto {
    @ApiModelProperty(value = "通行记录ID")
    private Long id;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "机构ID")
    private Long orgId;

    @ApiModelProperty(value = "通行人员ID")
    private Long userId;

    @ApiModelProperty(value = "通行人员姓名")
    private String name;

    @ApiModelProperty(value = "用户类型(1家长 2教师 3学生 4黑名单 5陌生人)")
    private Short roleType;

    @ApiModelProperty(value = "用户类型名称")
    private String roleName;

    @ApiModelProperty(value = "年级")
    private Long gradeId;

    @ApiModelProperty(value = "年级名称")
    private String gradeName;

    @ApiModelProperty(value = "班级ID")
    private Long classId;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "区域ID")
    private Long areaId;

    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "进出(0 进 1出)")
    private Short entranceType;

    @ApiModelProperty(value = "通行时间")
    private Date attTime;

    @ApiModelProperty(value = "抓拍图片路径")
    private Object faceImg;

    @ApiModelProperty(value = "上传图片路径")
    private String upPic;

    @ApiModelProperty(value = "设备")
    private String deviceCode;

    @ApiModelProperty(value = "工号/学号")
    private String userNo;

    @ApiModelProperty(value = "卡号")
    private String cardNo;

    @ApiModelProperty(value = "出生日期")
    @JSONField(format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;

    @ApiModelProperty(value = "通行状态")
    private Short attStatus;

    @ApiModelProperty(value = "体温")
    private Float temperature;

    @ApiModelProperty(value = "体温状态")
    private Short temperatureStatus;
}
